/**
 * Created by dale on 2017/10/19.
 */
$(document).ready(function () {
    //当日公告通知弹窗
    if (num>0) {
        window.top.xhTop.showModal({
            title:'通知公告',
            content: '<iframe src="'+baseUrl+'frontend/msg/todayMsg'+'"  style="width: 100%;;border-style: none;padding: 0px;height:520px"  scrolling="yes"   ></iframe>',
            footerHtml:
            '<button type="button" class="btn btn-default" id="prevOne">上一条</button>' +
            '<button type="button" class="btn btn-default"  id="nextOne">下一条</button>',
            backClose: true
        });
    }

    $('#noticeList').on('click','.clickNotice',function () {
        var id=$(this).attr('id');
        window.top.xhTop.showModal({
            title:'通知公告',
            content: '<iframe src="'+baseUrl+'frontend/msg/noticeDetail?iNoId='+id+'"  style="width: 100%;;border-style: none;padding: 0px;height:520px"  scrolling="yes"   ></iframe>',
            backClose: true,
        });
    });
    $('#more').click(function () {
        window.top.xhTop.createNewTab('通知公告','frontend/msg/noAfList',true);
    });
    $('#header').attr('display','none');
});
